﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewStock.aspx.cs" Inherits="news_NewStock" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div class="button_bar">
        <asp:Button ID="btnAdd" CssClass="common_button" runat="server" Text="添加" 
            OnClientClick="document.location='NewStockAdd.aspx';return false;"/>
    </div>
    <div>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" class="query_form_table" 
            AutoGenerateColumns="False" DataKeyNames="Id" DataSourceID="EntityDataSource1">
            <Columns>
                <asp:CheckBoxField DataField="IsEnable" HeaderText="发布" />
                <asp:BoundField DataField="Id" HeaderText="Id" ReadOnly="True" 
                    SortExpression="Id" />
                <asp:BoundField DataField="Name" HeaderText="新股名称" SortExpression="Name" />
                <asp:BoundField DataField="ForecastPrice" HeaderText="券商预测价格" 
                    SortExpression="ForecastPrice" />
                <asp:BoundField DataField="FTime" DataFormatString="{0:yyyy-MM-dd}" 
                    HeaderText="发行时间" />
                <asp:BoundField DataField="N10E" HeaderText="10E" SortExpression="N10E" />
                <asp:BoundField DataField="N11E" HeaderText="11E" SortExpression="N11E" />
                <asp:BoundField DataField="N12E" HeaderText="12E" SortExpression="N12E" />
                <asp:BoundField DataField="YieldPrediction" HeaderText="预测收益率" 
                    SortExpression="YieldPrediction" />
                <asp:BoundField DataField="DilutedEarnings" HeaderText="摊薄收益率" 
                    SortExpression="DilutedEarnings" />
                <asp:BoundField DataField="NetAssetsPerShare" HeaderText="每股净资" 
                    SortExpression="NetAssetsPerShare" />
                <asp:BoundField DataField="EarningsPerShare" HeaderText="每股收益" 
                    SortExpression="EarningsPerShare" />
                <asp:BoundField DataField="NetRateOf" HeaderText="净资产收益率" 
                    SortExpression="NetRateOf" />
                <asp:BoundField DataField="MunicipalGrowth" HeaderText="适应增长率" 
                    SortExpression="MunicipalGrowth" />
                <asp:BoundField DataField="CapitalStock" HeaderText="股本" 
                    SortExpression="CapitalStock" />
                <asp:BoundField DataField="Industry" HeaderText="所属行业" 
                    SortExpression="Industry" />
                <asp:BoundField DataField="InvestmentHighlights" HeaderText="投资要点" 
                    SortExpression="InvestmentHighlights" />
                <asp:CommandField ShowEditButton="True" />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
        </asp:GridView>
        <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
            ConnectionString="name=CMSEntities" DefaultContainerName="CMSEntities" 
            EnableDelete="True" EnableFlattening="False" EnableInsert="True" 
            EnableUpdate="True" EntitySetName="NewStock">
        </asp:EntityDataSource>
    </div>
    </form>
</body>
</html>
